// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import http from './utils/request'
import Regular from './utils/validator'
Vue.use(elementUI)

Vue.config.productionTip = false
Vue.prototype.$get = http.get
Vue.prototype.$post = http.post
Vue.prototype.$regular = Regular
Vue.prototype.$eventBus = new Vue()
window.TITLE = '网页标题'
// 全局变量
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
